< previous page page_392 next page >

Page 392
Listing 10.16. continued
Private Function RSBack()
    '
    ' move back one record
    '
    If rs.BOF = True Then
        rs.MoveFirst
    Else
        rs.MovePrevious
        If rs.BOF Then
            rs.MoveFirst
        End If
    End If
    '
    RSBack = 0
    Exit Function
    '
LocalErr:
    RSBack = Err.Number
    '
End Function


Private Function RSNext()
    '
    ' move to next record
    '
    If rs.EOF = True Then
        rs.MoveLast
    Else
        rs.MoveNext
        If rs.EOF Then
            rs.MoveLast
        End If
    End If
    '
    RSNext = 0
    Exit Function
    '
LocalErr:
    RSNext = Err.Number
    '
End Function
You have just completed the record-handling portion of the library. There are only three routines left to build. These three routines provide the button set that users see when they perform data entry operations on your form.

 
< previous page page_392 next page >

If you like this book, buy it!